// 模拟近7天日期数据
export const getLast7Days = () => {
  const days = [];
  for (let i = 6; i >= 0; i--) {
      const date = new Date();
      date.setDate(date.getDate() - i);
      days.push(date.toLocaleDateString().slice(5));
  }
  return days;
}
// 模拟近7天出租率数据（0-100%）
export const generateRates = () => {
    return Array.from({length: 7}, () => Math.floor(Math.random() * 100));
}

// 生成日期标签（近30天）
export const generateDateLabels = () => {
  let labels = [];
  let today = new Date();
  for (let i = 29; i >= 0; i--) {
      let date = new Date();
      date.setDate(today.getDate() - i);
      labels.push(`${date.getMonth() + 1}/${date.getDate()}`);
  }
  
  return labels;
}